package cn.sskxyz.mongodb.multi;

import java.util.Set;

import org.bson.Document;
import org.bson.conversions.Bson;
import org.springframework.data.mongodb.core.convert.DefaultMongoTypeMapper;
import org.springframework.data.util.TypeInformation;

public class DummyMongoTypeMapper extends DefaultMongoTypeMapper {

    @Override
    public boolean isTypeKey(String key) {
        return false;
    }

    @Override
    public void writeTypeRestrictions(Document result, Set<Class<?>> restrictedTypes) {

    }

    @Override
    public TypeInformation<?> readType(Bson source) {
        return super.readType(source);
    }

    @Override
    public <T> TypeInformation<? extends T> readType(Bson source, TypeInformation<T> basicType) {
        return super.readType(source, basicType);
    }

    @Override
    public void writeType(Class<?> type, Bson dbObject) {

    }

    @Override
    public void writeType(TypeInformation<?> info, Bson sink) {

    }
}
